import logging
import psycopg2

_schema = logging.getLogger('odoo.schema')

_CONFDELTYPES = {
    'RESTRICT': 'r',
    'NO ACTION': 'a',
    'CASCADE': 'c',
    'SET NULL': 'n',
    'SET DEFAULT': 'd',
}

def existing_tables(cr, tablenames):
    pass

def table_exists(cr, tablename):
    pass
def table_kind(cr, tablename):
    pass

def create_model_table(cr, tablename, comment=None):
    pass

def table_columns(cr, tablename):
    pass

def column_exists(cr, tablename, columnname):
    pass

def create_column(cr, tablename, columnname, columntype, comment=None):
    pass

def rename_column(cr, tablename, columnname1, columnname2):
    pass

def convert_column(cr, tablename, columnname, columntype):
    pass

def set_not_null(cr, tablename, columnname):
    pass

def drop_not_null(cr, tablename, columnname):
    pass

def constraint_definition(cr, tablename, constraintname):
    pass

def add_constraint(cr, tablename, constraintname, definition):
    pass

def drop_constraint(cr, tablename, constraintname):
    pass

def add_foreign_key(cr, tablename1, columnname1, tablename2, columnname2, ondelete):
    pass

def fix_foreign_key(cr, tablename1, columnname1, tablename2, columnname2, ondelete):
    pass

def index_exists(cr, indexname):
    pass

def create_index(cr, indexname, tablename, expressions):
    pass

def create_unique_index(cr, indexname, tablename, expressions):
    pass

def drop_index(cr, indexname, tablename):
    pass

def drop_view_if_exists(cr, viewname):
    pass

def escape_psql(to_escape):
    pass

def pg_varchar(size=0):
    pass

def reverse_order(order):
    pass
